package by.gravity.drive_track.adapter;

import java.util.List;

import android.content.Context;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import by.gravity.common.adapter.AbstractAdapter;
import by.gravity.drive_track.R;
import by.gravity.drive_track.model.route.Route;

public class RouteAdapter extends AbstractAdapter<Route> {

	public RouteAdapter(Context c, int pItemResource, List<Route> pList) {
		super(c, pItemResource, pList);
	}

	@Override
	public void init(View convertView, final Route item) {
		final TextView name = (TextView) convertView.findViewById(R.id.text);
		name.setText(item.getName());

	}

	class ViewHolder {
		EditText caption;
	}

	class ListItem {
		String caption;
	}

}
